ibmvscsis: Clear left-over abort_cmd pointers
authorBryant G. Ly <bryantly@linux.vnet.ibm.com>
Tue, 9 May 2017 16:50:26 +0000 (11:50 -0500)
committerRaspbian kernel package updater <root@raspbian.org>
Sun, 23 Jul 2017 02:52:41 +0000 (02:52 +0000)
commit4ead2b84da81e3283107ab0cf58598fb8bcecf3a
tree8f6fbd3fe01483769a4c7a86dff1a95277995534
parent0891d716d0674d0340f8b448eb1b45de37b20715
ibmvscsis: Clear left-over abort_cmd pointers

commit 98883f1b5415ea9dce60d5178877d15f4faa10b8 upstream.

With the addition of ibmvscsis->abort_cmd pointer within
commit 25e78531268e ("ibmvscsis: Do not send aborted task response"),
make sure to explicitly NULL these pointers when clearing
DELAY_SEND flag.

Do this for two cases, when getting the new new ibmvscsis
descriptor in ibmvscsis_get_free_cmd() and before posting
the response completion in ibmvscsis_send_messages().

Signed-off-by: Bryant G. Ly <bryantly@linux.vnet.ibm.com>
Reviewed-by: Michael Cyr <mikecyr@linux.vnet.ibm.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c